package com.ruoyi.traces.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.traces.mapper.TraceSettingsMapper;
import com.ruoyi.traces.domain.TraceSettings;
import com.ruoyi.traces.service.ITraceSettingsService;

/**
 * 溯源界面配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-30
 */
@Service
public class TraceSettingsServiceImpl implements ITraceSettingsService 
{
    @Autowired
    private TraceSettingsMapper traceSettingsMapper;

    /**
     * 查询溯源界面配置
     * 
     * @param id 溯源界面配置ID
     * @return 溯源界面配置
     */
    @Override
    public TraceSettings selectTraceSettingsById()
    {
        return traceSettingsMapper.selectTraceSettingsById();
    }

    /**
     * 查询溯源界面配置列表
     * 
     * @param traceSettings 溯源界面配置
     * @return 溯源界面配置
     */
    @Override
    public List<TraceSettings> selectTraceSettingsList(TraceSettings traceSettings)
    {
        return traceSettingsMapper.selectTraceSettingsList(traceSettings);
    }

    /**
     * 新增溯源界面配置
     * 
     * @param traceSettings 溯源界面配置
     * @return 结果
     */
    @Override
    public int insertTraceSettings(TraceSettings traceSettings)
    {
        return traceSettingsMapper.insertTraceSettings(traceSettings);
    }

    /**
     * 修改溯源界面配置
     * 
     * @param traceSettings 溯源界面配置
     * @return 结果
     */
    @Override
    public int updateTraceSettings(TraceSettings traceSettings)
    {
        return traceSettingsMapper.updateTraceSettings(traceSettings);
    }

    /**
     * 批量删除溯源界面配置
     * 
     * @param ids 需要删除的溯源界面配置ID
     * @return 结果
     */
    @Override
    public int deleteTraceSettingsByIds(Long[] ids)
    {
        return traceSettingsMapper.deleteTraceSettingsByIds(ids);
    }

    /**
     * 删除溯源界面配置信息
     * 
     * @param id 溯源界面配置ID
     * @return 结果
     */
    @Override
    public int deleteTraceSettingsById(Long id)
    {
        return traceSettingsMapper.deleteTraceSettingsById(id);
    }
}
